addition method for solving equations